<template>
    <view class="helpflex">
        <view class="imgtext">
            <image class="img" :src="baseUrl+helparr.img"></image>
            <p class="text">{{helparr.type_name}}</p>
        </view>
        <view id="bottom">
            <list :texts="{itemson, index}" v-for="(itemson, index) in helparr.problem" :key="index"></list>
        </view>
    </view>
</template>

<script>
    import list from './list'

    export default {
        created() {
            // console.log(this.helparr)
        },
        components: {
            list
        },
        props: {
            helparr: {
                type: Object
            }
        },
        data() {
            return {
                // 控制下拉显示
                textshow: 0,
                baseUrl: this.$store.state.baseUrl,
            };
        },
        methods: {
            textarrclickimg(index) {
                this.textshow = index.currentTarget.dataset.index
                console.log(this.textshow)
            }
        }
    }
</script>

<style lang="scss" scoped>
    .helpflex {
        border-bottom: 1px solid #EEEEEE;
        display: flex;
    }

    .imgtext {
        width: 120rpx;
        height: 123rpx;
        text-align: center;

        .img {
            width: 90rpx;
            height: 90rpx;
        }

        .text {
            font-size: 24rpx;
            color: #999999;
        }
    }
</style>
